'use strict';

var React = require('react');
var AMR = require('amazeui-react');

/* [COMPONENTS] */<% if (pageComponents) {
	underscore.each(pageComponents , function(path , name) { %>var <%= name %> = require('<%= path %>');
<% }); } %>/* [COMPONENTS] */

var <%= pageName %> = React.createClass({
  render: function() {
    return (
      <div className="<%= pageName %>">
        <AMR.Container>
			<% if (pageComponent) { %>
			<%- pageComponent %>
			<% } else { %>
          	<h1><%= pageName %></h1>
		  	<% } %>
        </AMR.Container>
      </div>
    );
  }
});

module.exports = <%= pageName %>;
